package wnhz.com.business.shareshop.ui;

import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.view.View;
import android.view.WindowManager;
import android.widget.LinearLayout;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;
import wnhz.com.business.R;
import wnhz.com.business.base.BaseActivity;
import wnhz.com.business.impl.ActionBarClickListener;
import wnhz.com.business.view.TranslucentActionBar;
import wnhz.com.business.view.TranslucentActionBarW;

/**
 * 帮助中心
 */
public class HelpCenterActivityS extends BaseActivity implements ActionBarClickListener {

    @BindView(R.id.actionbar)
    TranslucentActionBar actionbar;
    @BindView(R.id.ll_one)
    LinearLayout llOne;
    @BindView(R.id.tv_onemessage)
    TextView tvOnemessage;
    @BindView(R.id.ll_two)
    LinearLayout llTwo;
    @BindView(R.id.tv_twomessage)
    TextView tvTwomessage;
    @BindView(R.id.ll_three)
    LinearLayout llThree;
    @BindView(R.id.tv_threemessage)
    TextView tvThreemessage;
    @BindView(R.id.ll_four)
    LinearLayout llFour;
    @BindView(R.id.tv_fourmessage)
    TextView tvFourmessage;
    @BindView(R.id.ll_five)
    LinearLayout llFive;
    @BindView(R.id.tv_fivemessage)
    TextView tvFivemessage;
    @BindView(R.id.ll_six)
    LinearLayout llSix;
    @BindView(R.id.tv_sixmessage)
    TextView tvSixmessage;
    @BindView(R.id.tv_one)
    TextView tvOne;
    @BindView(R.id.tv_two)
    TextView tvTwo;
    @BindView(R.id.tv_three)
    TextView tvThree;
    @BindView(R.id.tv_four)
    TextView tvFour;
    @BindView(R.id.tv_five)
    TextView tvFive;
    @BindView(R.id.tv_six)
    TextView tvSix;

    private int a = 0;
    private int b = 0;
    private int c = 0;
    private int d = 0;
    private int e = 0;
    private int f = 0;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_help_center_fs);
        ButterKnife.bind(this);
        actionbar.setData("共享规则", R.drawable.ic_lefft_white, null, 0, null, 0, this);
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
            this.getWindow().addFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
            this.getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);

            actionbar.setStatusBarHeight(getStatusBarHeight());
        }

    }


    public static Intent createIntent(Context context) {
        Intent intent = new Intent(context, HelpCenterActivityS.class);
        return intent;
    }

    @Override
    public void onLeftClick() {
        finish();

    }

    @Override
    public void onRightClick() {

    }

    @Override
    public void onEditTextClick() {

    }

    @OnClick({R.id.ll_one, R.id.ll_two, R.id.ll_three, R.id.ll_four, R.id.ll_five, R.id.ll_six})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.ll_one:
                if (a % 2 == 0) {
                    tvOnemessage.setVisibility(View.VISIBLE);
                    tvOne.setTextSize(15);
                    a = 1;
                } else {
                    tvOnemessage.setVisibility(View.GONE);
                    tvOne.setTextSize(13);
                    a = 0;
                }
                break;
            case R.id.ll_two:
                if (a % 2 == 0) {
                    tvTwomessage.setVisibility(View.VISIBLE);
                    tvTwo.setTextSize(15);
                    a = 1;
                } else {
                    tvTwomessage.setVisibility(View.GONE);
                    tvTwo.setTextSize(13);
                    a = 0;
                }
                break;
            case R.id.ll_three:
                break;
            case R.id.ll_four:
                break;
            case R.id.ll_five:
                break;
            case R.id.ll_six:
                break;
        }
    }
}
